/**
 * 
 */
package org.whatisjava.action;

import java.util.Map;
import java.util.Set;

/**
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-1-26
 */
public class TestOGNLAction extends BaseAction {

    /**
	 * 
	 */
    private static final long serialVersionUID = 1L;
    private Map<String, String> langaugeOption;

    public Map<String, String> getLangaugeOption() {
        return this.langaugeOption;
    }

    public void setLangaugeOption(Map<String, String> langaugeOption) {
        this.langaugeOption = langaugeOption;
    }

    /**
     * 
     * @return
     */
    public String execute() {
        Set<?> set = langaugeOption.keySet();// 取出元素
        for (Object key : set) { // for(元素的类型 ： 集合或者数组）｛｝
            Object value = langaugeOption.get(key);
            System.out.println(key + ":" + value);
        }
        return "success";
    }
}
